const fs = require('fs')
const util = require('util')
const mainFile = util.promisify(fs.readFile)

// fs.readFile('./static/1.html', (err, data1) => {
//     if (err) throw err
//     fs.readFile('./static/2.html', (err, data2) => {
//         if (err) throw err
//         fs.readFile('./static/3.html', (err, data3) => {
//             if (err) throw err
//             console.log(data1 + data2 + data3);
//         })
//     })


// })
async function isasync() {
    let res1 = await mainFile('./static/1.html')
    let res2 = await mainFile('./static/2.html')
    let res3 = await mainFile('./static/3.html')
    console.log(res1 + res2 + res3);
}
isasync()